package org.lxy.controller;


import java.util.Arrays;
import java.util.Map;

import com.baomidou.mybatisplus.extension.api.R;
import org.lxy.service.PointsLogService;
import org.lxy.utils.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;


@RestController
@RequestMapping("/pointslog")
public class PointsLogController {
    @Autowired
    private PointsLogService pointsLogService;

    /**
     * 列表
     */
    @RequestMapping("/list")
    public ModelAndView list(@RequestParam Map<String, Object> params){
        PageUtils page = pointsLogService.queryPage(params);

        return null;
    }


  /*  *//**
     * 信息
     *//*
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Integer id){
		PointsLogEntity pointsLog = pointsLogService.getById(id);

        return R.ok().put("pointsLog", pointsLog);
    }

    *//**
     * 保存
     *//*
    @RequestMapping("/save")
    public R save(@RequestBody PointsLogEntity pointsLog){
		pointsLogService.save(pointsLog);

        return R.ok();
    }

    *//**
     * 修改
     *//*
    @RequestMapping("/update")
    public R update(@RequestBody PointsLogEntity pointsLog){
		pointsLogService.updateById(pointsLog);

        return R.ok();
    }

    *//**
     * 删除
     *//*
    @RequestMapping("/delete")
    public R delete(@RequestBody Integer[] ids){
		pointsLogService.removeByIds(Arrays.asList(ids));

        return R.ok();
    }*/

}
